<?php
use think\facade\Db;
// 应用公共文件
function getNavigation()
{
    $con = request()->controller();
    $action = request()->action();
    $data = Db::table('navigation')->where('controller',$con)->where('action',$action)->find();
    return $data;
}
//导航
function getNavigationAll()
{
    $navigation = Db::table('navigation')->select();
    return $navigation;
}
//网站站点
function setting(){
    $data = Db::table('set')->find(2);
    return $data;
}